package com.cake.liulanxiangzhu.service;

import com.cake.liulanxiangzhu.pojo.dto.AdminCategoryDTO;
import com.cake.liulanxiangzhu.pojo.dto.AdminCategoryInsertDTO;
import com.cake.liulanxiangzhu.pojo.vo.AdminCategoryVO;

import java.util.List;

/**
 * 商品分类接口
 *
 * @author dinghao
 */
public interface ICategoryService {

    /**
     * 添加商品分类
     *
     */
    void addNew(AdminCategoryInsertDTO adminCategoryInsertDTO);

    /**
     * 删除商品分类
     *
     */
    void delete(Integer categoryId );
    /**
     * 修改商品分类
     *
     */
    void update(AdminCategoryDTO adminCategoryDTO);

    /**
     * 查询商品分类
     *
     */
    List<AdminCategoryVO> list();

    /**
     *
     *<span> 回显编辑数据
     * @param categoryId
     * @return
     * @author tian
     * @since 1.0.0
     * @date 2022/12/30 16:06
     */
    AdminCategoryVO selectById(Integer categoryId);

}
